mui.init();
mui.init({
	gestureConfig: {
		longtap: true, //默认为false
		release: true,
		hold: true
	}
});

mui('.ex_note').on('tap', '.ex_note_item', function () {
	mui.openWindow({
		url: 'mistakeRevolution.html'
	})
});

//长按笔记弹窗提示
mui('.ex_note').on('longtap', '.ex_note_item', function () {
	var that = $(this);
	var btnarr = ["确定", "取消"];
	mui.confirm("确认删除该条笔记？", "操作提示", btnarr, function (e) {
		if (e.index == 0) {
			that.remove();
			mui.toast("删除笔记成功！");
		} else {
			mui.toast("已取消删除该条笔记！");
		}
	});
});